#pragma once
#include <iostream>
#include "Donthuc.h"
using namespace std;

struct Node
{
	Donthuc donthuc;
	Node *next;
};

class List
{
private:
	Node *phead;
	int sophantu;
	void AddHead(Donthuc);
	void AddTail(Donthuc);
	Node *CreateNode(Donthuc);

public:
	List();
	List(const List &list)
	{
		phead = list.phead;
		sophantu = list.sophantu;
	};
	~List();

	bool IsEmpty() { return phead == NULL; };
	Donthuc &GetValue(int); //gia tri tai Node thu i
	bool SetValue(int, Donthuc);
	int size() { return sophantu; };
	void AddPosition(int, Donthuc);
	void Add(Donthuc);
	int DeletePosition(int );
};

